If you use staging, you receive an order from your customer with the 'Sales - XML to EDI order' message. This message imports the received order into the EDI sales order journal. When the import is completed, the applicable validations are done automatically.